package com.sbr.seb.wicket.page;

import org.apache.wicket.RequestCycle;
import org.apache.wicket.markup.html.WebPage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.sbr.seb.wicket.SebApplication;
import com.sbr.seb.wicket.SebSession;
import com.sbr.seb.wicket.layout.Menu;

public class BasePage extends WebPage {
	
	protected static final Logger logger = LoggerFactory.getLogger(BasePage.class);
	
	
	public BasePage() {
		SebApplication app = (SebApplication)RequestCycle.get().getApplication();
		add(new Menu("menuList", app.getMenuItemList()));
    }
	
	public SebSession getMySession(){
		return (SebSession)getSession();
	}

}